-- GENERATED SPELL FOR [Bile Golem] --


function spell0_28201(pUnit, Event) --@Wretching Bile,n/a--
pUnit:FullCastSpellOnTarget(52527,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28201', 15000, 1)
end

function spell1_28201(pUnit, Event) --@Wretching Bile,n/a--
pUnit:FullCastSpellOnTarget(58810,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28201', 15000, 1)
end

function Sorts_28201(pUnit, Event)
local choix_sorts_28201 = math.random(0, 1)
if choix_sorts_28201 == 0 then
pUnit:RegisterEvent('spell0_28201', 1, 1)
end
if choix_sorts_28201 == 1 then
pUnit:RegisterEvent('spell1_28201', 1, 1)
end
end

function mob28201_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28201', math.random(1500, 3000), 1)
end

function mob28201_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28201_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28201_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28201, 1, 'mob28201_Action')
RegisterUnitEvent(28201, 2, 'mob28201_Leave')
RegisterUnitEvent(28201, 3, 'mob28201_Kill')
RegisterUnitEvent(28201, 4, 'mob28201_Die')
